

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>${sysName}</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="${resRoot}/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="${resRoot}/layui/admin/admin.css" media="all">
  <style type="text/css">
	  .layui-side-menu .layui-side-scroll {
	    width: 265px;
	}
  	.layui-layout-admin .layui-side {
    width: 251px;
	}
	.layui-side-menu .layui-nav {
    width: 248px;
	}
	.layadmin-pagetabs, .layui-layout-admin .layui-body, .layui-layout-admin .layui-footer, .layui-layout-admin .layui-layout-left {
    left: 247px;
	}
	.tipsList{
		display:none;
		width:150px;
		height:40px;
		position: absolute; 
		top: 50%; 
		right: 20px;
		background:#ffffff;
		text-align:center;
		box-shadow: 5px 5px 15px #000000;
		border-radius: 4px;
		color: black;
	
	}
  </style>
</head>
<body class="layui-layout-body">
  
  <div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
      <div class="layui-header">
        <!-- 头部区域 -->
        <ul class="layui-nav layui-layout-left">
          <li class="layui-nav-item layadmin-flexible" lay-unselect>
            <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
              <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
            </a>
          </li>
          <li class="layui-nav-item" lay-unselect>
            <a href="javascript:;" layadmin-event="refresh" title="刷新">
              <i class="layui-icon layui-icon-refresh-3"></i>
            </a>
          </li>
        </ul>
        <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
          
          <li class="layui-nav-item layui-hide-xs" lay-unselect>
            <a href="javascript:;" layadmin-event="theme">
              <i class="layui-icon layui-icon-theme"></i>
            </a>
          </li>
          <li class="layui-nav-item layui-hide-xs" lay-unselect>
            <a href="javascript:;" layadmin-event="fullscreen">
              <i class="layui-icon layui-icon-screen-full"></i>
            </a>
          </li>
          <li class="layui-nav-item" lay-unselect>
            <a href="javascript:;">
              <cite>${user.loginName}</cite>
            </a>
            <dl class="layui-nav-child">
              <dd><a lay-href="${base}/sys/user/user">基本资料</a></dd>
              <dd><a lay-href="${base}/sys/user/changePwd">修改密码</a></dd>
              <dd ><a onclick="cleanDictCache();"><cite>清理缓存</cite></a></dd>
              <hr>
              <dd style="text-align: center;"><a href="javascript:;" onclick="loginOut();">退出</a></dd>
            </dl>
          </li>
          
        </ul>
      </div>
      
      <!-- 侧边菜单 -->
      <div class="layui-side layui-side-menu">
        <div class="layui-side-scroll">
          <div class="layui-logo" lay-href="${base}/index">
            <span>${sysName}</span>
          </div>
          
          <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
          
          		<#list menuList as menu >
		            <li data-name="home_${menu_index}" class="layui-nav-item <#if menu_index==0>layui-nav-itemed</#if>">
		              <a href="javascript:;" lay-tips="${menu.name}" lay-direction="2">
		                <i class="layui-icon">${menu.icon!}</i>
		                <cite style="font-size: 16px;">${menu.name}</cite>
		              </a>
		              <#list menu.childMenu as childMenu>
		              <#if childMenu_index==0>
			              <dl class="layui-nav-child">
		              </#if>
		                <dd <#if menu_index==0 && childMenu_index==0>class="layui-this" </#if> >
		                <#if menu.name!="系统管理" && menu.name!="系统设置"  >
		                  <i class="layui-icon">${childMenu.icon!}</i><a lay-href="${childMenu.url}">${childMenu.name} </a>
		                  <span class="tips" onclick="tipsOnclick(this)" onmouseout="tipsOnOut(this)" style="position: absolute; top: 50%; right: 9px; margin-top: -19px;float: right;cursor:pointer">?</span>
		                  <ul class="tipsList">
		                  <span>数据来源:</span>
		                  <span>${childMenu.sjly}</span>
		                  
		                  </ul>			
		                  </#if>
		                   <#if menu.name == "系统管理" || menu.name == "系统设置">
		                  <i class="layui-icon">${childMenu.icon!}</i><a lay-href="${childMenu.url}">${childMenu.name} </a>
		                  </#if>
		                </dd>
		                <#if !childMenu_has_next>
		                </dl>
		                </#if>
		              </#list>
		            </li>            
          		</#list>
          </ul>
        </div>
      </div>

      <!-- 页面标签 -->
      <div class="layadmin-pagetabs" id="LAY_app_tabs">
        <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
        <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
        <div class="layui-icon layadmin-tabs-control layui-icon-down">
          <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
            <li class="layui-nav-item" lay-unselect>
              <a href="javascript:;"></a>
              <dl class="layui-nav-child layui-anim-fadein">
                <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
              </dl>
            </li>
          </ul>
        </div>
        <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
          <ul class="layui-tab-title" id="LAY_app_tabsheader">
            <li lay-id="${base}/index" lay-attr="${base}/index" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
          </ul>
        </div>
      </div>
      
      
      <!-- 主体内容 -->
      <div class="layui-body" id="LAY_app_body">
        <div class="layadmin-tabsbody-item layui-show" style="bottom: 44px;" >
          <iframe src="${base}/index" frameborder="0" class="layadmin-iframe"></iframe>
        </div>
      </div>
      
    <div class="layui-footer footer" style="padding: 0px 0;" >
			<p>copyright @${.now?string('YYYY')}  深圳残联<!-- 正则科技 --></p>
		</div>
      <!-- 辅助元素，一般用于移动设备下遮罩 -->
      <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
  </div>

  <script src="${resRoot}/layui/layui.js"></script>
  <script src="${resRoot}/js/jquery.min.js"></script>
  <script>
  layui.config({ 
    base: '${resRoot}/layui/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use('index');
  
  function loginOut() {
	  layer.confirm('确定退出该系统吗?', function(index){
		  window.location.href="${base}/logout";
	  });
  }
  function cleanDictCache() {
		$.ajax({
			type : "post",
			url : "${base}/cleanCache",
			data : JSON.stringify({
				}),
			contentType : "application/json",
			dataType : "json",
			async : false,
			success : function(data) {
				if(data.code == 1) {
						layer.msg('清理成功！', {
						  icon: 1,
						  time: 2000 //2秒关闭（如果不配置，默认是3秒）
						}, function(){
							backList();
						});   
					} else {
						layer.msg(data.msg); 
					}
			}
		}); 
	};
	function tipsOnclick(obj){
		$(obj).next("ul").show();
		$(obj).parent().siblings("dd").children("ul").hide();
	}
	function tipsOnOut(obj){
		$(obj).next("ul").hide();
	}
  </script>
</body>
</html>


